//
//  RNOLMyBorrowMoneyViewController.m
//  RongNiuOnline
//
//  Created by apple on 2018/5/2.
//  Copyright © 2018年 rongniu. All rights reserved.
//

#import "RNOLMyBorrowMoneyViewController.h"
#import "RNOLINeedBorrowMoneyFormView.h"
#import "RNOLBorrowMoneyAlertTipView.h"

@interface RNOLMyBorrowMoneyViewController ()

@end

@implementation RNOLMyBorrowMoneyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = kBgColor;
    [self setupNavBarTitleViewWithText:@"我要借款"];
    UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, KWIDTH , KHIGHT-kNavBarHeight - 44)];
    adjustsScrollViewInsets_NO(scrollView, self);
    [self.view addSubview: scrollView];
    RNOLINeedBorrowMoneyFormView *formView = [RNOLINeedBorrowMoneyFormView FromXIB];
    formView.frame =CGRectMake(0, 0, KWIDTH , 750);
    [scrollView addSubview: formView];
    scrollView.contentSize = CGSizeMake(KWIDTH, CGRectGetMaxY(formView.frame));

    
    UIButton *borrowMoneyButton = [UIButton buttonWithType:UIButtonTypeCustom];
    borrowMoneyButton.frame = CGRectMake(0, KHIGHT - kNavBarHeight - 44, KWIDTH , 44);
    [borrowMoneyButton setTitle:@"立即借款" forState:UIControlStateNormal];
    [borrowMoneyButton addTarget:self action:@selector(borrowMoneyAction:) forControlEvents:UIControlEventTouchUpInside];
    borrowMoneyButton.backgroundColor = kAppMainColor;
    [self.view addSubview: borrowMoneyButton];
    
}

#pragma mark- 立即借款
- (void)borrowMoneyAction:(UIButton *)button{
    [RNOLBorrowMoneyAlertTipView showAlertTip];
}

@end
